package cn.zjitc.exam.service;

import cn.zjitc.exam.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: 李林凯
 * time:2025/6/18 19:29
 **/
public interface ProductService {
    Product findById(int id);
    int insert(Product product);
    int update(Product product);
    int delete(int id);
    int getProductCount();
    List<Product> getProductByPage(int page,int pageSize);
    List<Product> searchByKeyword(String keyword, int page, int pageSize);
    // 统计搜索结果总数
    int countByKeyword(String keyword);
}
